from datetime import datetime


def now():
    nowtime = datetime.now().strftime('%Y-%m-%d %H:%M:%S')
    return nowtime

def date_delta(start,end):
    start = datetime.strptime(start, '%Y-%m-%d %H:%M:%S')
    end = datetime.strptime(end, '%Y-%m-%d %H:%M:%S')
    delta = end - start
    return int(delta.total_seconds())